package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.service.EnterCaiJianInfoViewDetailsService;
import ysc.cqnu.operdb.serviceImpl.EnterQinYouInfoViewDetailsServiceImpl;

@CrossOrigin
@Controller
@ResponseBody
public class EnterQinYouInfoViewDetailsController {@Autowired
private ResultData resultData;
    @Autowired
    private EnterQinYouInfoViewDetailsServiceImpl enterQinYouInfoViewDetailsService;
    @RequestMapping(value = "/qinyouinfodetails",method = RequestMethod.GET)
    public ResultData qinyouinfodetails(@RequestParam(value = "id") String id){
        System.out.println("清油录入详情按钮前端已连接");
        resultData = enterQinYouInfoViewDetailsService.enterQinYouInfoViewDetailsService(id);
        return resultData;
    }
}
